import PhColorPicker from "./color-picker.vue";
import {createApp} from 'vue'

export default {
    install(app:any){
        const 
            dom = document.createElement("div"),
            colorpicker = createApp(PhColorPicker),
            instance = colorpicker.mount(dom) as InstanceType<typeof PhColorPicker>;
            document.body.appendChild(instance.$el)
        app.config.globalProperties.$phColorPicker = instance.show
    }
}